package com.yanxu.design02_builder.v2;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2025/4/14-2025
 * @Description: 这里用一句话描述这个类的作用
 */
public class Test {
    public static void main(String[] args) {
        Course.CourseBuilder courseBuilder = new Course.CourseBuilder()
                .buildCourseName("java 设计模式精讲")
                .buildCourseArticle("java article")
                .buildCoursePPT("java ppt")
                .buildCourseQA("java qa")
                .buildCourseVideo("java video");

        System.out.println(courseBuilder);

        Course course=new Course.CourseBuilder()
                .buildCourseName("java 设计模式精讲")
                .buildCourseArticle("java article")
                .buildCoursePPT("java ppt")
                .buildCourseQA("java qa")
                .buildCourseVideo("java video")
                .build();
        System.out.println(course);
    }
}